<div class="span10">
          <div class="row-fluid">
            <div class="span12 box">
            <?php echo (isset($tips))?$tips:'';?>
                <div class="box-head">
                    <h3><i class="icon-white icon-user" style="margin-top: 7px;"></i> 账户信息</h3>
                </div>
                <div class="box-content">
                    <div class="content-inner">
                        <div class="content-settings">
                            <div class="tabbable"> <!-- Only required for left/right tabs -->
                              <ul class="nav nav-tabs">
                                <li class="active" id="profile_tab"><a href="#profile" data-toggle="tab">基本资料</a></li>
                                <li id="password_tab"><a href="#password" data-toggle="tab">密码修改</a></li>
                                <li id="tradecode_tab"><a href="#tradecode" data-toggle="tab"><?php echo ($userInfo['tradecode'] == '' || empty($userInfo['tradecode']) || $userInfo['tradecode'] == null)?'安全密码设置':'安全密码修改';?></a></li>
                              </ul>
                              <div class="tab-content">
                                   <div class="tab-pane active" id="profile"><!-- Profile -->
                                        <div class="row-fluid">
                                            <div class="span10">
                                                <form name="profile" class="form-horizontal" action="<?php echo site_url('member/member_center/editProfile'); ?>" enctype="multipart/form-data"  method="post">
                                                    <input type="hidden" name="user_id" value="<?php echo $userInfo['id'];?>" />
                                                    <div class="control-group">
                                                      <label class="control-label">别名</label>
                                                      <div class="controls">
                                                        <input type="text" class="input-xlarge" name="name" value="<?php echo $userInfo['name'];?>">
                                                      </div>
                                                    </div>
                                                    <div class="control-group">
                                                      <label class="control-label">用户名</label>
                                                      <div class="controls">
                                                        <input type="text" disabled="disabled" name="user" class="input-xlarge" value="<?php echo $userInfo['user'];?>">
                                                      </div>
                                                    </div>
                                                    <div class="control-group">
                                                      <label class="control-label">E-mail</label>
                                                      <div class="controls">
                                                        <input type="text" class="input-xlarge" name="email" value="<?php echo $userInfo['email'];?>">
                                                      </div>
                                                    </div>
                                                    <div class="control-group">
                                                      <label class="control-label">个人主页</label>
                                                      <div class="controls">
                                                        <input type="text" class="input-xlarge" name="website" value="<?php echo $userInfo['website'];?>">
                                                      </div>
                                                    </div>
                                                    <div class="control-group">
                                                      <label class="control-label">选择头像文件</label>
                                                      <div class="controls">
                                                        <input type="file" name="userfile" />
                                                      </div>
                                                    </div>
                                                    <div class="control-group">
                                                      <label class="control-label">自我介绍</label>
                                                      <div class="controls">
                                                        <textarea class="input-xlarge" id="textarea" name="about" rows="3"><?php echo $userInfo['about'];?></textarea>
                                                      </div>
                                                    </div>
                                                    <div class="form-actions">
                                                          <input type="submit" value="保存更改" class="btn" />
                                                    </div>
                                                </form>
                                            </div>
                                            <div class="span2">
                                                <div class="account-settings">
                                                    <img src="<?php echo $userInfo['avatar'];?>" />
                                                </div>
                                            </div>
                                          </div>
                                        </div> <!-- profle -->
                                        <script type="text/javascript">
                                        function formVerific()
                                        {
                                            var pwd = $('#password input[name=pwd]').val();
                                            var new_pwd = $('#password input[name=new_pwd]').val();
                                            var new_pwd_a = $('#password input[name=new_pwd_a]').val();
                                            if(pwd == '')
                                            {
                                            	$('#password input[name=pwd]').siblings().remove();
                                            	$('#password input[name=pwd]').after('<span class="help-inline">*原始密码输入不能为空</span>').parents('div[class=control-group]').addClass('error');
                                            	$('#password input[name=pwd]').focus(function()
                                                    	{
                                                	$('#password input[name=pwd]').siblings().remove();
                                                	$('#password input[name=pwd]').parents('div[class=control-group error]').removeClass('error');
                                                    	});
                                            }
                                            if(new_pwd == '')
                                            {
                                            	$('#password input[name=new_pwd]').siblings().remove();
                                            	$('#password input[name=new_pwd]').after('<span class="help-inline">*请输入新的登录密码</span>').parents('div[class=control-group]').addClass('error');
                                            	$('#password input[name=new_pwd]').focus(function()
                                                    	{
                                                	$('#password input[name=new_pwd]').siblings().remove();
                                                	$('#password input[name=new_pwd]').parents('div[class=control-group error]').removeClass('error');
                                                    	});
                                            }
                                            if(new_pwd_a == '')
                                            {
                                            	$('#password input[name=new_pwd_a]').siblings().remove();
                                            	$('#password input[name=new_pwd_a]').after('<span class="help-inline">*请再次输入新的登录密码</span>').parents('div[class=control-group]').addClass('error');
                                            	$('#password input[name=new_pwd_a]').focus(function()
                                                    	{
                                                	$('#password input[name=new_pwd_a]').siblings().remove();
                                                	$('#password input[name=new_pwd_a]').parents('div[class=control-group error]').removeClass('error');
                                                    	});
                                            }
                                            if(pwd == '' || new_pwd_a == '' || new_pwd == '')
                                            {
                                                return false;
                                            }
                                            if(new_pwd.length < 6 || new_pwd.length > 16)
                                            {
                                            	$('#password input[name=new_pwd]').siblings().remove();
                                            	$('#password input[name=new_pwd]').after('<span class="help-inline">*密码必须设置为6~12位数字或字母</span>').parents('div[class=control-group]').addClass('warning');
                                            	$('#password input[name=new_pwd]').focus(function()
                                                    	{
                                                	$('#password input[name=new_pwd]').siblings().remove();
                                                	$('#password input[name=new_pwd]').parents('div[class=control-group warning]').removeClass('warning');
                                                    	});
                                            	return false;
                                            }
                                            if(new_pwd != new_pwd_a)
                                            {
                                            	$('#password input[name=new_pwd_a]').siblings().remove();
                                            	$('#password input[name=new_pwd_a]').after('<span class="help-inline">*两次密码输入不一致，请重新确认要修改的密码</span>').parents('div[class=control-group]').addClass('warning');
                                            	$('#password input[name=new_pwd_a]').focus(function()
                                                    	{
                                                	$('#password input[name=new_pwd_a]').siblings().remove();
                                                	$('#password input[name=new_pwd_a]').parents('div[class=control-group warning]').removeClass('warning');
                                                    	});
                                               return false;
                                            }
                                        }
                                        </script>
                                        <div class="tab-pane" id="password"><!-- Password -->
                                          <form name="password" onSubmit="return formVerific()" class="form-horizontal" action="<?php echo site_url('member/member_center/editPassWord'); ?>"  method="post">
                                            <input type="hidden" name="user_id" value="<?php echo $userInfo['id'];?>" />
                                            <div class="control-group">
                                              <label class="control-label">输入原始密码</label>
                                              <div class="controls">
                                                <input type="password" class="input-xlarge" name="pwd">
                                              </div>
                                            </div>
                                            <div class="control-group">
                                              <label class="control-label">输入新的密码</label>
                                              <div class="controls">
                                                <input type="password" class="input-xlarge" name="new_pwd">
                                              </div>
                                            </div>
                                            <div class="control-group">
                                              <label class="control-label">再输入一次新密码</label>
                                              <div class="controls">
                                                <input type="password" class="input-xlarge" name="new_pwd_a">
                                              </div>
                                            </div>
                                            <div class="form-actions">
                                                <input type="submit" name="submit" value="确定修改" class="btn" />
                                            </div>
                                          </form>
                                        </div> <!-- trade code -->
                                        <script type="text/javascript">
                                        function formVerific2()
                                        {
                                            var tradecode = $('#tradecode input[name=tradecode]').val();
                                            var new_tradecode = $('#tradecode input[name=new_tradecode]').val();
                                            var new_tradecode_a = $('#tradecode input[name=new_tradecode_a]').val();
                                            if(tradecode == '')
                                            {
                                            	$('#tradecode input[name=tradecode]').siblings().remove();
                                            	$('#tradecode input[name=tradecode]').after('<span class="help-inline">*原始安全密码输入不能为空</span>').parents('div[class=control-group]').addClass('error');
                                            	$('#tradecode input[name=tradecode]').focus(function()
                                                    	{
                                                	$('#tradecode input[name=tradecode]').siblings().remove();
                                                	$('#tradecode input[name=tradecode]').parents('div[class=control-group error]').removeClass('error');
                                                    	});
                                            }
                                            if(new_tradecode == '')
                                            {
                                            	$('#tradecode input[name=new_tradecode]').siblings().remove();
                                            	$('#tradecode input[name=new_tradecode]').after('<span class="help-inline">*请输入新的安全密码</span>').parents('div[class=control-group]').addClass('error');
                                            	$('#tradecode input[name=new_tradecode]').focus(function()
                                                    	{
                                                	$('#tradecode input[name=new_tradecode]').siblings().remove();
                                                	$('#tradecode input[name=new_tradecode]').parents('div[class=control-group error]').removeClass('error');
                                                    	});
                                            }
                                            if(new_tradecode_a == '')
                                            {
                                            	$('#tradecode input[name=new_tradecode_a]').siblings().remove();
                                            	$('#tradecode input[name=new_tradecode_a]').after('<span class="help-inline">*请再次输入新的安全密码</span>').parents('div[class=control-group]').addClass('error');
                                            	$('#tradecode input[name=new_tradecode_a]').focus(function()
                                                    	{
                                                	$('#tradecode input[name=new_tradecode_a]').siblings().remove();
                                                	$('#tradecode input[name=new_tradecode_a]').parents('div[class=control-group error]').removeClass('error');
                                                    	});
                                            }
                                            if(tradecode == '' || new_tradecode_a == '' || new_tradecode == '')
                                            {
                                                return false;
                                            }
                                            if(new_tradecode.length < 6 || new_tradecode.length > 16)
                                            {
                                            	$('#tradecode input[name=new_tradecode]').siblings().remove();
                                            	$('#tradecode input[name=new_tradecode]').after('<span class="help-inline">*安全密码必须设置为6~12位数字或字母</span>').parents('div[class=control-group]').addClass('warning');
                                            	$('#tradecode input[name=new_tradecode]').focus(function()
                                                    	{
                                                	$('#tradecode input[name=new_tradecode]').siblings().remove();
                                                	$('#tradecode input[name=new_tradecode]').parents('div[class=control-group warning]').removeClass('warning');
                                                    	});
                                            	return false;
                                            }
                                            if(new_tradecode != new_tradecode_a)
                                            {
                                            	$('#tradecode input[name=new_tradecode_a]').siblings().remove();
                                            	$('#tradecode input[name=new_tradecode_a]').after('<span class="help-inline">*两次密码输入不一致，请重新确认要修改的安全密码</span>').parents('div[class=control-group]').addClass('warning');
                                            	$('#tradecode input[name=new_tradecode_a]').focus(function()
                                                    	{
                                                	$('#tradecode input[name=new_tradecode_a]').siblings().remove();
                                                	$('#tradecode input[name=new_tradecode_a]').parents('div[class=control-group warning]').removeClass('warning');
                                                    	});
                                               return false;
                                            }
                                        }
                                        </script>
                                        <div class="tab-pane" id="tradecode"><!-- Password -->
                                          <form onSubmit="return formVerific2()"  class="form-horizontal" action="<?php echo site_url('member/member_center/editTradecode'); ?>"  method="post">
                                            <input type="hidden" name="user_id" value="<?php echo $userInfo['id'];?>" />
                                            <?php
                                             if($userInfo['tradecode'] == '' || empty($userInfo['tradecode']) || $userInfo['tradecode'] == null)
                                             {
                                             	echo '<input type="hidden" name="sys_type" value="new" />';
                                             }
                                             else
                                             {
                                             	echo '<input type="hidden" name="sys_type" value="edit" />';
                                             	echo '<div class="control-group">'.
                                              '<label class="control-label">输入原始安全密码</label>'.
                                              '<div class="controls">'.
                                                '<input type="password" class="input-xlarge" name="tradecode">'.
                                              '</div>'. 
                                            '</div>';
                                             }
                                            ?>
                                            <div class="control-group">
                                              <label class="control-label">输入新的安全密码</label>
                                              <div class="controls">
                                                <input type="password" class="input-xlarge" name="new_tradecode">
                                              </div>
                                            </div>
                                            <div class="control-group">
                                              <label class="control-label">再输入一次新安全密码</label>
                                              <div class="controls">
                                                <input type="password" class="input-xlarge" name="new_tradecode_a">
                                              </div>
                                            </div>
                                            <div class="form-actions">
                                                <input type="submit" name="submit" value="修改安全密码" class="btn" />
                                            </div>
                                          </form>
                                        </div> <!-- password -->
                                </div><!-- tab-content-->
                           </div> <!-- end tabbable -->
                        </div>
                    </div><!-- content-inner -->
                </div>
            </div>
          </div> <!-- end row -->
          
        </div><!--/span-->
      </div><!--/row-->